﻿using iTool.ClusterComponent;
using System.Collections.Generic;

namespace Core.Framework
{
    public class iToolConfigure
    {
        public string Ip { get; set; }
        public int Port { get; set; }
        public int AcceptQueueCount { get; set; }
        public int HeartbeatTimes { get; set; }
        public int ServerPort { get; set; }
        public int ServerGatewayPort { get; set; }
        public string JWTToken { get; set; }
        public IEnumerable<string> iToolBaseDatabases { get; set; }
        public IEnumerable<AdoNetOptions> iToolBaseDatabaseList { get; set; }
        public IEnumerable<string> FunctionDatabases { get; set; }
        public IEnumerable<string> MessageDatabases { get; set; }
        public IEnumerable<string> LoggerDatabases { get; set; }
        public IEnumerable<string> MongoDBProviders { get; set; }
        public IEnumerable<ElasticSearchProviderOptions> ElasticSearchProviders { get; set; }
    }

    public class ElasticSearchProviderOptions
    {
        public string Ip { get; set; }
        public int Port { get; set; }
        public string User { get; set; }
        public string Password { get; set; }
    }


    // client: Port,AcceptQueueCount,HeartbeatTimes
}
